bin/refs: Disallow creating broken aliases
authorJonathan Lebon <jonathan@jlebon.com>
Tue, 30 Oct 2018 17:21:46 +0000 (13:21 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 31 Oct 2018 12:32:30 +0000 (12:32 +0000)
commit34a8867749122550cd5d1b80ce22ba4340e00691
treec8b13cead1c4b0044fe69ddd2b2d41a600d7e50f
parent51752baf0e841d7a1843b4e77852878077dfe660
bin/refs: Disallow creating broken aliases

This is the alias version of #1749. I.e. we want to make sure that one
can't even create an alias which would end up dangling.

See also: https://pagure.io/releng/issue/7891

Closes: #1768
Approved by: sinnykumari
src/ostree/ot-builtin-refs.c
tests/test-refs.sh